package com.xasz.text2vec.controller;

import com.xasz.text2vec.service.DaySumService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.stereotype.Controller;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author cai
 * @since 2023-07-07
 */
@Controller
@RequestMapping("/text2vec/daySum")
public class DaySumController {
    @Autowired
    private DaySumService daySumService;
    /**
     * 统计
     */
    @GetMapping("/getDaySum")
    public ResponseEntity<Boolean> getDaySum(){
        return ResponseEntity.status(HttpStatus.CREATED).body(daySumService.statByDay());
    }
}
